import {createStore}from 'vuex'
import mitt from 'mitt'

const emitter=new mitt()

const store = createStore({

  state: {
    emitter,
  },

  mutations: {
    increment (state) {
      // 变更状态
      state.count++
    }
  }

})

export default store
